package ch.fusun.baron.printing;

import java.util.List;

import ch.fusun.baron.core.rmi.User;
import ch.fusun.baron.data.DataProvider;
import ch.fusun.baron.printing.service.impl.GameMessage;

/**
 * Holds messages until the next update is requested
 */
public interface MessagingService extends DataProvider {

	/**
	 * @param messages
	 *            The messages to add
	 */
	void addMessages(List<GameMessage> messages);

	/**
	 * @param user
	 *            The uttering user
	 * @param message
	 *            The message
	 */
	void addMessage(User user, String message);

	/**
	 * @return All buffered messages
	 */
	public List<GameMessage> getMessages();
}
